package com.tju.ocean_ecology_website.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 捐赠记录表(DonationRecord)实体类
 *
 * @author shaolong
 * @since 2025-04-29 19:35:59
 */
public class DonationRecord implements Serializable {
    private static final long serialVersionUID = -37869163537695611L;
/**
     * 捐赠记录ID
     */
    private Long id;
/**
     * 项目ID
     */
    private Long projectId;
/**
     * 用户ID
     */
    private Long userId;
/**
     * 捐赠人姓名
     */
    private String donorName;
/**
     * 捐赠金额
     */
    private Double amount;
/**
     * 支付方式：0-微信支付, 1-支付宝, 2-其他
     */
    private Integer paymentMethod;
/**
     * 留言
     */
    private String message;
/**
     * 是否匿名
     */
    private Integer isAnonymous;
/**
     * 捐赠时间
     */
    private Date donationTime;
/**
     * 捐赠状态：0-待处理, 1-成功, 2-失败
     */
    private Integer status;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getDonorName() {
        return donorName;
    }

    public void setDonorName(String donorName) {
        this.donorName = donorName;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Integer getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(Integer paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getIsAnonymous() {
        return isAnonymous;
    }

    public void setIsAnonymous(Integer isAnonymous) {
        this.isAnonymous = isAnonymous;
    }

    public Date getDonationTime() {
        return donationTime;
    }

    public void setDonationTime(Date donationTime) {
        this.donationTime = donationTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}

